package com.eras.shoes.contents;

import java.util.ArrayList;
import java.util.List;

public class BulDataObject {
    private List<Float> pressurePointData;//压力点数据
    private Integer quantityElectricity;//电量
    private Float bluSignal;//蓝牙信号
    private Float temperature;//温度
    private Float pressureData;//压力数据


    public BulDataObject(List<Float> pressurePointData, Integer quantityElectricity, Float bluSignal, Float temperature, Float pressureData) {
        this.pressurePointData = pressurePointData;
        this.quantityElectricity = quantityElectricity;
        this.bluSignal = bluSignal;
        this.temperature = temperature;
        this.pressureData = pressureData;
    }

    public List<Float> getPressurePointData() {
        return pressurePointData;
    }

    public void setPressurePointData(List<Float> pressurePointData) {
        this.pressurePointData = pressurePointData;
    }

    public Float getPressureData() {
        return pressureData;
    }

    public void setPressureData(Float pressureData) {
        this.pressureData = pressureData;
    }

    public Integer getQuantityElectricity() {
        return quantityElectricity;
    }

    public void setQuantityElectricity(Integer quantityElectricity) {
        this.quantityElectricity = quantityElectricity;
    }

    public Float getTemperature() {
        return temperature;
    }

    public void setTemperature(Float temperature) {
        this.temperature = temperature;
    }

    public Float getBluSignal() {
        return bluSignal;
    }

    public void setBluSignal(Float bluSignal) {
        this.bluSignal = bluSignal;
    }

    public void mirrorTransition(){
        List<Float> newpressurePointData =new ArrayList<>();
        newpressurePointData.add(this.pressurePointData.get(0));
        newpressurePointData.add(this.pressurePointData.get(3));
        newpressurePointData.add(this.pressurePointData.get(2));
        newpressurePointData.add(this.pressurePointData.get(1));
        newpressurePointData.add(this.pressurePointData.get(5));
        newpressurePointData.add(this.pressurePointData.get(4));
        newpressurePointData.add(this.pressurePointData.get(7));
        newpressurePointData.add(this.pressurePointData.get(6));
        newpressurePointData.add(this.pressurePointData.get(9));
        newpressurePointData.add(this.pressurePointData.get(8));
        pressurePointData=newpressurePointData;
    }
}
